<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2024-05-24 19:52:30
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-06-20 20:02:43
-->
<script setup lang="ts">
import { RouterView } from "vue-router";

const isRouterAlive = ref(true);

const reload: any = () => {
  isRouterAlive.value = false;
  nextTick(() => {
    isRouterAlive.value = true;
  });
};

provide("reload", reload);
</script>

<template>
  <RouterView v-if="isRouterAlive" />
</template>

<style scoped></style>
